package cn.mw.cmdb.service;

import cn.mw.cmdb.entity.ModelTemplateInfo;
import cn.mw.cmdb.param.*;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ModelTemplateService {
    List<TemplateZabbixParam> getTemplateListByZabbix();

   boolean syncTemplateInfo() throws Exception;

    void batchUpdateTemplate(List<ModelTemplateInfo> info) throws Exception;

   boolean updateTempStatus(TemplateIdsParam param) throws Exception;

    List<TemplateExcelImportParam> importTempByExcel(MultipartFile file, HttpServletResponse response) throws Exception;

    int exportTempByExcel(TemplateSearchParam searchParam, HttpServletRequest request, HttpServletResponse response) throws Exception;

    List<QueryModelTemplateParam> selectTempInfoAndMonitorMode(ModelTemplateInfo info) throws Exception;
}
